package com.rongc.client.freight.business.mine.request.api;


import com.android.volley.Response;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.base.request.result.NullResult;


/*
*  获取个人信息
* */
public class UpdateNickApi extends AbsRequest<UpdateNickApi.UpdateNickParams, NullResult> {

    public UpdateNickApi(UpdateNickParams feedbackParams, Response.Listener<NullResult> listener, Response.ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getUpdateNickUrl(), feedbackParams, listener, errorListener, NullResult.class);
    }

    public static class UpdateNickParams extends BaseParams {

        public UpdateNickParams(String nick) {
            put("nick",nick);
            put("id", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }
}
